<%@page import="com.wframe.framework.util.UploadUtil"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<%
request.setAttribute("fileserver",UploadUtil.getConfig().getDownserver());
%>

<div class="orderinfo">
<div class="right-title"><span></span>退货订单详情<a class="fr" href="javascript:hideorderinfo();">返回订单列表</a></div>
<div class="ht">
	<p class="t"><span>订单编号：${order.code }</span><span>退货状态：
	<c:choose>
		<c:when test="${order.backtag==1}">待审核</c:when>
		<c:when test="${order.backtag==2}">同意退货</c:when>
		<c:when test="${order.backtag==3}">拒绝退货</c:when>
		<c:when test="${order.backtag==4}">退货取消</c:when>
		<c:when test="${order.backtag==5}">退货完成</c:when>
	</c:choose>
	</span>
	<span>申请时间：<fmt:formatDate value='${order.applytime}' pattern='yyyy-MM-dd HH:mm:ss'/></span>
	</p>
	<p style="line-height:140%" class="col666">
		<c:choose>
			<c:when test="${order.backtag==1}">
			客户您好，很抱歉出现这样的情况，自销售之日起（以发票日期为准）15天内商品出现非人为性能故障，我们可以为您提供换货服务。请您将故障件自行快递返回我司售后处理，物品返回时请提供全部附件及完整包装，发票复印件（如果需要提供原件，我们会电话通知您）及保修单复印件（或将保修单背面的客户返回栏填写好并沿虚线剪下返回）。再次感谢您的支持！祝您购物愉快！
			</c:when>
		</c:choose>
	</p>
	<c:if test="${not empty order.authcon}">
		<p style="color:red;line-height:140%">审核结果：${order.authcon }</p>
	</c:if>
</div>
<div class="inner clearfix">
	<div class="buySteps">
		<li class="s-1 <c:if test="${order.backtag>=1}">cur-1</c:if>">1.提交申请</li>
       	<li class="<c:if test="${order.backtag>=1}">cur-2</c:if>">2.平台审核</li>
       	<li class="<c:if test="${order.backtag==3}">cur-2</c:if>">3.等待平台收货</li>
       	<li class="<c:if test="${order.backtag==5}">cur-2</c:if>">4.验货入库完成</li>
	</div>
</div>
<div class="hc">
	<p class="p">退货原因：${order.reason }</p>
	<p class="p">退货图片：
	<c:forEach items="${order.backphotos }" var="photo">
		<img src="${ctx }${photo.filepath}" style="width:64px;vertical-align: top;margin-right:6px;">
	</c:forEach>
	</p>
	<p class="p">电话号码：${order.backphone }</p>
	<p class="p">退货方式：发货到平台</p>
	<div class="hh">退货商品清单</div>
	<div class="addre-con" style="width:100%;padding:0px;margin:0px;">
   		<ul>
             <li class="th">
                  <span class="d1">订单信息</span>
                  <span class="d2">商品价格</span>
                  <span class="d3">数量</span>
                  <span class="d4">小计</span>
            </li>
            <c:forEach items="${products }" var="product" varStatus="status">
                    <li class="tr" style="border-width:1px;">
                     	<span class="d1" style="text-align:left">
                     		<div class="td-inner">
                     			<div style="float:left"> <a href="${ctx }/product/info?priceid=${product.id}" target="_blank"><img src="<%=getRandomFileserver()%>${product.photo}" width="90" height="90" alt=""></a></div>
                     			<div style="float:left;padding-left:15px;">
                      			<p><strong>${product.productname } ${product.name }</strong></p>
                      			<p><span style="width:320px;">生产厂家：${product.B_chanjia }</span><span>件装量：${product.B_zhuanl }</span></p>
                      			<p><span style="width:320px;">规　　格：${product.B_guige }</span><span>单　位：${product.unitname }</span></p>
                      			<p><span style="width:320px;">批准文号：${product.B_pzwh }</span><span>可拆零：${product.B_kechai }</span></p>
                     			</div>
                      </div>
                     </span>
                        <span class="d2 ptd">￥${product.buyprice }</span>
                        <span class="d3 ptd">×${product.buyamount }</span>
                        <span class="d4 ptd">￥${product.sumprice }</span>
                </li>
             </c:forEach>
        </ul>
    </div>
    
</div>
</div>